package com.all.play.myapplication.Application;

import android.app.Application;

import com.all.play.myapplication.moudle.Model;
import com.hyphenate.chat.EMOptions;
import com.hyphenate.easeui.EaseUI;

/**
 * Created by 聪明一只哈 on 2018/3/30.
 */

public class MyApp extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        //初始化Easui
        EMOptions option=new EMOptions();
        option.setAcceptInvitationAlways(false);//需要自己经过同意,才能接受邀请
        option.setAutoAcceptGroupInvitation(false);//需要自己经过同意,才能接受组邀请
        EaseUI.getInstance().init(this,option);


        //初始化Model
        Model.getInstance().init(this);
    }
}
